<template>
  <el-table :data="topPhoneAmt" style="width: 100%;padding-top: 15px;">
    <el-table-column label="排名" min-width="100">
      <template slot-scope="scope">
        {{ scope.$index +1}}
      </template>
    </el-table-column>
    <el-table-column label="电话号码" min-width="150">
      <template slot-scope="scope">
        {{ scope.row[0] || '未登记' }}
      </template>
    </el-table-column>
    <el-table-column label="工作量" width="195" align="center">
      <template slot-scope="scope">
        {{ scope.row[1] }}
      </template>
    </el-table-column>
  </el-table>
</template>

<script>

export default {
  props: {
    topPhoneAmt: {
      type: Array,
      required: true
    }
  },
  created () {
    this.fetchData()
  },
  methods: {
    fetchData () {
      this.list = []
      // transactionList().then(response => {
      //   this.list = response.data.items.slice(0, 8)
      // })
    }
  }
}
</script>
